How to add a WooCommerce cart widget to your mega menu dropdown

How to add a cart widget to your menu This tutorial shows you how to add a submenu to your Cart Summary / Info item which displays a mini cart. Please note that the styling of your WooCommerce cart widget will be dictated by WooCommerce and your theme (if your theme provides cart widget styles. UberMenu does not apply its own styling to the cart widget 1. Add a Widget Area item as a child of your Cart Summary item In Appearance > Menus, add a new Widget Area item from the UberMenu Advanced Items group. Drag it into position as a child below your top level cart summary item. 2. Set up the Widget Area In your new Widget Area item, open the UberMenu settings and enter the name for your widget area in the Custom Widget Area setting. We’ll use Cart Click Save Menu Item to save the UberMenu item settings. Click Save Menu to save the new menu item to the menu – or you can do this later after you’ve set up the Widget in Step 3. 3. Add the widget Navigate to Appearance > Widgets in your WordPress admin. Find the Cart Widget Drag it into the [UberMenu] Cart widget area You can remove the title to just show the cart with no header above it if you like. Click Save to save the widget. 4. Set the submenu position and width, disable the submenu indicator (optional) Back in Appearance > Menus, Open the UberMenu menu item settings for the top level (Cart summary) item In the General tab, enable the Disable Submenu Indicator setting. In the Submenu tab, set the Mega Submenu Position to Right Edge of Parent Item or as desired. In the Submenu tab, set the Submenu Width to 450px or as […]

How can I use dropdowns inside my mega submenus?

By default, your normal items within a mega submenu will be visible when the submenu is opened. By leaving the Submenu Type set to “Auto”, these column items become stacks. If you switch the Submenu Type to Mega or Flyout, you will get a dropdown instead, and this article deals with that situation. Flyouts within Mega Submenus are not recommended I do not generally recommend using dropdowns within mega submenus. This is generally confusing for users and leads to bad UX, so you should consider whether this is really the best format for your submenu. Generally, better formats would include using Tabs or else Flyout submenus as your first level and mega submenus as your second level. These formats achieve similar effects (hidden content revealed on activation within a submenu) in a more structured format. Enabling Dropdowns within Mega Submenus If you wish to allow dropdowns within a mega submenu, you can enable that in the Control Panel > Main UberMenu Configuration > Submenus > Allow Dropdown within Mega Submenu Please note: if you enable this setting, you cannot use the “Slide” submenu transition. This is because the slide transition requires hidden overflow to work, while dropdowns within mega submenus requires visible overflow to work. If you want to use this setting, you must switch to a Transition other than Slide Multi-level mega submenus (intended use case) One good use (really the intended one) for this is to allow a single-line submenu to have additional mega submenus so that you can have a double-level mega menu. This is a very specific scenario, however. Here’s the result when using the setting as intended:

Mobile Submenu Type

Since UberMenu 3.7 Dropdown submenus By default, submenus on mobile will drop down, meaning that when they are open they will overlap other content in the menu/site. This is generally preferable for inline menus, which displace other content on the site when they open. Using dropdowns limits the scrolling required to navigate the menu. Accordion submenus Accordion submenus are a new option in v3.7 to complement the Modal Mobile menu. Accordion submenus push down items below them rather than overlapping. This option is optimized for the Modal mobile menu option, which appears in its own modal window and scroll context. Note that if you use a 2-column layout for tablets, accordion mode will be disabled as this is incompatible.

How to create the UberMenu 3 Menu Bar

This video tutorial walks you through recreating the UberMenu 3 Menu Bar, including all top level items, social media icons, and the search bar drop down. Click through to the video on YouTube to be able to jump to specific sections of the video via the timestamp links in the Description.

Kallyas (Hogash)

Are you using UberMenu 3? Please see the UberMenu 3 Kallyas Integration GUide Kallyas, by Hogash, is a very powerful and popular theme. I have found it integrates with UberMenu pretty well out of the box, but some things can go wrong at responsive sizes, partially because some of the header dimensions are set explicitly rather than left flexible. Using UberMenu as your responsive menu First, if you want to use UberMenu for your responsive menu, be sure to set the Kallyas menu to Drop Down If you use the Smooth Menu option, you will have both menus display. I would also suggest adding So that your UberMenu will automatically clear the header when at responsive sizes. Using UberMenu full-width By default, UberMenu will be floated right by the theme. If you’d rather have it the full width of your content area, you can add this Using UberMenu floated right If you are using UberMenu floated right, I’d suggest using this code, which will turn the menu full-width below 1200px (you can adjust that value), so that the menu won’t overlap with other elements in your header. Whether or not you need this, and the most appropriate width, will depend on your site and the number of menu items you have Make the search button fit better Buttons outside of the actual menu are tough to control, but you can resize the magnifying glass button in Kallyas to better size with UberMenu like this (good if you’re leaving the menu floated right). You may want to change the padding based on your skin.

Enfold (Kriesi) – old

These instructions are for older versions of Enfold. For the current version, see Enfold Integration Instructions Enfold has two menus: Main and Secondary. There are separate instructions for each: Main Secondary Main Menu For the most part, UberMenu and Enfold work together very well out of the box. There are a few CSS tweaks we can add that will make them play even more nicely together. Since Enfold has a few different menu settings that you can mix and match, we’ll take each style in turn. Pick the one you want to use and apply the prescribed CSS changes for optimal UberMenu + Enfold integration. Note that Enfold contains a custom/custom.css file, so that is a good place to add any custom CSS. Note for users intending to use the built-in Enfold search button, disable the Reset Div & Span Styling option in the UberMenu Control Panel > Theme Integration. Recommended Skin The recommended skin for Enfold is Vanilla. Any of the skins will function, and you can always use the Style Generator or write your own skin; but Vanilla looks the closest to Enfold’s menu out of the box. Desktop Menus Enfold offers several desktop menu styles under Enfold > Header > Header Type. Depending on which Header Type you choose, you’ll want to do something a bit different with UberMenu. Integration Type 1: Header with Social Icons and bottom Navigation The last option is the easiest to sort out, and perhaps the most common layout for using a mega menu, so we’ll cover that first. When you activate UberMenu, it’ll look like this: You’ll see that the menu is compressed vertically because Enfold sets an explicit height on this menu. To resolve this, simply add: and the issue is resolved. Integration Type 2: Non-fixed Headers ( “Small non-fixed […]

iOS Video overlapping unresponsive menu issues

If your videos are dynamically created and inserted (with javascript, for instance), and they overlap an UberMenu submenu (or any content on your page) iOS won’t handle that nicely – the overlapped content will become unresponsive after you activate/play the video. Unfortunately, there is nothing to be done from an UberMenu standpoint – this is an issue with the way iOS handles dynamically inserted Flash objects and overlapping HTML elements. Here are some potential solutions for the issue – your mileage may vary: Potential Solution #1 Getting embedded Youtube videos to stay under your drop down menu – even with an iPad – if you are using embed code, this may work – just like the wmode fix presented above. Potential Solution #2 This Stack Overflow answer explains the dynamic insertion issue (see the answer with 18+ votes) : This solution has worked for some people, depending on the situation You can fix z-index on dynamically created videos by giving the video element -webkit-transform-style: preserve-3d Potential Solution #3 If your videos are dynamically inserted, insert them statically instead. The issue seems to only occur with dynamically inserted videos, based on reports. Potential Solution #4 If all else fails, you could write some javascript that will hide the video when UberMenu is in the hover state. Something like: But even this may introduce its own issues in iOS. Until iOS Safari becomes a more robust browser, this may simply be a limitation of having videos on your site If none of the above solutions work for you, unfortunately this issue seems unresolvable for the time being. This issue is due to the way mobile Safari handles video elements and focus layering. Until Apple resolves the issue with mobile Safari, there is no solution to my knowledge.

Image Portal (Experimental)

This feature is experimental. Its implementation may change in the future An Image Portal allows you to display an item’s image, on hover, in a separate area of the menu. The Portal is the area which displays the images separately from the source items. Note that in the Portal setup, the images will not be clickable, as they will disappear when hovering off of the associated menu items. Setup Instructions Overview We’ll set up a group of menu items with images assigned. Then we’ll add a custom content item elsewhere in the layout, containing the [ubermenu_image_portal] shortcode, which will select those menu items and display their images when hovered. 1. Create a list of menu items First, create your list of items. These items will trigger an associated image to appear in the Portal when you hover over them. You can put them in whatever layout you like (multiple columns, rows, etc), however, none of the items should have dropdown submenus, as the dropdown trigger mouse interaction would conflict with the image hover mouse interaction. 2. Apply an image to each item You can set an Image for each item, either manually or by inheriting the featured image from that post. Make sure you set the Item Layout for the items to “Image Above”, either on the item itself or in the Control Panel (global settings). These images will be collected and removed from the source menu items and displayed in the Portal instead. (For now, you’ll see them with the items, but that’ll change once we add the shortcode in step 4). 3. Give your item source container a selector When we create the actual Portal, we’ll give it a standard CSS/JS selector to indicate which items’ images should be displayed in the portal. You can set this up […]

Twenty Twenty One

Twenty Twenty One will create residual styling on mobile by wrapping UberMenu inside its own menu, and add +/- buttons within the menu items which break the menu layout. To resolve this, we will use manual integration to replace the theme’s menu with UberMenu, and remove the theme’s toggle button filter via a child theme. Manual Integration & Button removal 1. Set up your child theme If you haven’t already, install and activate your child theme. We will make changes here to preserve them when the parent theme is updated. If you are not sure how to create a child theme, the Child Theme Configurator plugin is an easy way to generate one. 2. Copy the site-nav.php template into the child theme In the child theme, create the following folder structure: template-parts/header Copy the template-parts/header/site-nav.php file from the parent theme into the same directory in the child theme. 3. Edit the nav template Open the site-nav.php file that you just created in the child theme. We’ll conditionally replace the entire #site-navigation block with the UberMenu manual integration code, like this: 4. Remove the toggle buttons filter Twenty Twenty One injects extra markup into *every* menu to add the +/- buttons via a filter. Remove them by adding this PHP in your child theme’s functions.php file: Recommended Settings Menu Alignment To align the menu to the right of the site title, set the Menu Bar Alignment to Right in the Control Panel. Because the theme uses a flexbox header, you may wish to add this CSS to align the menu to the right edge of the content area: You may also wish to set the Bound Submenu To setting to Unbounded to allow the submenu to expand beyond the width of the menu bar. To bound the submenu to the theme’s […]

Twenty Nineteen

Twenty Nineteen interferes with UberMenu in two ways: 1. Injecting markup through PHP filters, which is resolved through a snippet of code provided below. 2. Residual styling, which is resolved through manual integration and a line of CSS. Are you using a child theme? You should always use a child theme to modify your theme and never edit the parent theme itself. If you’re not already using a child theme, create one first and activate it. If you’re not sure how to create a child theme, you can use the Child Theme Configurator plugin to automate the task. Don’t forget to activate your child theme. It doesn’t do anything unless it’s the active theme. Removing extra Twenty Nineteen markup The most obvious issue when integrating UberMenu with Twenty Nineteen is the extra markup that the theme injects, so we’ll tackle that first. All of these extra arrows (among other markup) are added by Twenty Nineteen. While these are important for Twenty Nineteen’s menu, the theme adds this extra markup to *all* menus, rather than just its own. To prevent Twenty Nineteen from adding this extra markup to UberMenu, add this PHP code in your child theme’s functions.php Eliminating Residual Styling Next we want to prevent the theme’s styles from interfering with the menu. To do this we’ll use manual integration. First, copy the twentynineteen/template-parts/header/site-branding.php into your child theme in the same directory (you’ll need to create those directories if they don’t already exist). e.g. twentynineteenchild/template-parts/header/site-branding.php Next, open the child theme’s site-branding.php file and find the #site-navigation section: Replace this block of code: with this: That manually integrates the menu. Finally, there is still some CSS from the theme that gives the text in the menu a shadow – it applies to all text within the header. To disable this, add […]